package testJdk.json;

import cn.hutool.json.JSONUtil;
import org.junit.Test;

/**
 * @version 1.0.0
 * Created by cyd on 2022-01-05 17:47:40
 * @ClassName : learn_jdk.json.TestJsonToObject
 * @Description : 类描述
 */
public class TestJsonToObject {

    @Test
    public void test01(){
        MonitorQueryReqVo monitorQueryReqVo = new MonitorQueryReqVo();
        monitorQueryReqVo.setApiId(1002L);
        monitorQueryReqVo.setApiVersion("1.0");
        monitorQueryReqVo.setApplicationKey("1.0");
        monitorQueryReqVo.setEndTime(10L);
        monitorQueryReqVo.setStartTime(10L);
        monitorQueryReqVo.setTenantId(1002L);
        String body = JSONUtil.parse(monitorQueryReqVo).toStringPretty();
        System.out.println(body);
    }
}
